echo "启动模板容器,添加文件夹共享"
lxc remote add tuna-images https://mirrors.tuna.tsinghua.edu.cn/lxc-images/ --protocol=simplestreams --public
finger=`lxc image list tuna-images: | grep "ubuntu/16.04 (" | awk '{print $6}'`
lxc launch tuna-images:${finger} first
lxc config set first security.privileged true
lxc config device add first gpu gpu
lxc config device add $1 nvidia-uvm unix-char path=/dev/nvidia-uvm
me=`whoami`
mkdir /home/${me}/share
chmod -R 777 /home/${me}/share
lxc config device add first shareName disk source=/home/${me}/share path=/root/share
